/*
 * @Author: TJN tjn@246@126.com
 * @Date: 2024-06-21 09:52:18
 * @LastEditors: TJN tjn@246@126.com
 * @LastEditTime: 2024-06-21 09:53:04
 * @FilePath: \hdcms-nest\prisma\seed\user.ts
 * @Description:
 *
 * Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
 */

import { PrismaClient } from '@prisma/client';

const prisma = new PrismaClient();
export default async () => {
  const user = await prisma.user.update({
    where: {
      id: 1,
    },
    data: {
      name: 'admin',
      password: 'admin123',
    },
  });
};
